.smap-editor-content-ai {
  --max-width: calc(100% - 200px);

  width: var(--max-width);
  height: 40px;

  .smap-alternate-ai-ui {
    &.search {
      width: 450px;
    }

    &.popover {
      width: 320px;
      max-height: min(40vh, 320px);
      padding: 6px 0;
      overflow: auto;
      margin-top: 4px;

      > div {
        height: 28px;
        display: flex;
        align-items: center;
        font-size: 14px;
        user-select: none;
        transition: background 20ms ease-in 0s;
        cursor: pointer;
        margin-left: 4px;
        margin-right: 4px;
        border-radius: 4px;
        padding: 0 12px 0 10px;

        &:hover {
          background: rgb(55 53 47 / 6%);
        }

        .smap-icon {
          color: #a782c3;
          font-size: 16px;
        }

        .smap-ellipsis.title {
          margin: 0 6px;
        }
      }
    }
  }

  .smap-search-wrap {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 2px 12px 2px 8px;
    gap: 4px;

    .smap-icon.ai {
      color: rgb(167 130 195);
    }

    .smap-icon.enter {
      font-size: 16px;
      color: rgb(55 53 47 / 45%);
      cursor: pointer;
    }

    .smap-ai-input {
      display: flex;
      flex: 1;
      align-items: center;
      border: none;
      padding: 4px 0;
      min-height: 28px;

      input {
        overflow: hidden;
        height: 21px;
        line-height: 21px;
        border: none;
        background: none;
        width: 100%;
        display: block;
        resize: none;
        padding: 0;
        outline: none;
      }
    }

    .send-arrow {
      color: rgb(55 53 47 / 45%);
    }
  }
}
